package com.imau.listener;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
import javax.servlet.annotation.WebListener;
//web容器创建 和 销毁
@WebListener
public class ContextLoaderListener implements ServletContextListener {

    public void contextInitialized(ServletContextEvent sce) {

        System.out.println("contextInitialized....");

        //应用初始化 资源 获取ServletContext
      //  sce.getServletContext()

    }

    public void contextDestroyed(ServletContextEvent sce) {

        System.out.println("contextDestroyed....");

    }
}
